package com.sinochem.yunlian.ship.common.enums;

import lombok.Getter;

public enum TradeType {

    NO_RELATION(0,"未报价"),
    BIDED(1,"曾报价"),
    FINSH_LOADING(2,"曾配载");

    @Getter
    private int typeCode;

    @Getter
    private String name;

    TradeType(int typeCode, String name){
        this.typeCode = typeCode;
        this.name = name;
    }

    public static String valueOf(int typeCode) {
        switch (typeCode) {
            case 1:
                return BIDED.name;
            case 2:
                return FINSH_LOADING.name;
            case 0:
                return NO_RELATION.name;
        }
        return "";
    }

}
